package drone.basis.dictionary ;

public enum CurrencyDict
{
	AED ( "阿联酋币" ) ,
	AUD ( "澳元" ) ,
	BRL ( "巴西币" ) ,
	CAD ( "加元" ) ,
	CHF ( "瑞士法郎" ) ,
	CLP ( "智利比索" ) ,
	CNY ( "人民币" ) ,
	COP ( "哥伦比亚比索" ) ,
	DEM ( "德国马克" ) ,
	DKK ( "丹麦克朗" ) ,
	EUR ( "欧元" ) ,
	FRF ( "法郎" ) ,
	GBP ( "英镑" ) ,
	HKD ( "港币" ) ,
	INR ( "印度卢布" ) ,
	ISK ( "冰岛克朗" ) ,
	ITL ( "意大利里拉" ) ,
	JPY ( "日元" ) ,
	KRW ( "韩元" ) ,
	KWD ( "科威特第纳尔" ) ,
	MXN ( "墨西哥比索" ) ,
	MYR ( "马来西亚" ) ,
	NOK ( "挪威克朗" ) ,
	NZD ( "新西兰元" ) ,
	PHP ( "菲律宾币" ) ,
	PLN ( "波兰币" ) ,
	QAR ( "卡塔尔里亚尔" ) ,
	RUB ( "卢布" ) ,
	SEK ( "瑞典克朗" ) ,
	SGD ( "新加坡元" ) ,
	THB ( "泰铢" ) ,
	TWD ( "台币" ) ,
	USD ( "美元" ) ,
	ZAR ( "南非币" ),;

	private String name ;

	private CurrencyDict (
			String name
	)
	{
		this.name = name ;
	}

	public String getName ( )
	{
		return name ;
	}

	public void setName (
			String name
	)
	{
		this.name = name ;
	}

	public static Boolean exist (
			String currency
	)
	{
		for ( CurrencyDict item : CurrencyDict.values ( ) )
		{
			if ( item.name ( ).equalsIgnoreCase ( currency ) )
			{
				return true ;
			}
		}
		return false ;
	}
}
